﻿using System;
using System.Web.UI;
using Shinkansen.Web.UI.WebControls;

namespace Shinkansen
{
    public partial class Home : Page
    {
        /// <summary>
        /// Registers the static resources by hand.
        /// </summary>
        private void RegisterStaticResourcesByHand ()
        {
            StaticResources.JavaScript.Add (new JavaScriptInclude ("~/assets/js/swfobject.js"));

            CssInclude css = new CssInclude { Path = "/assets/css/booktip.css" };
            StaticResources.Css.Add (css);
        }

        /// <summary>
        /// Raises the <see cref="E:System.Web.UI.Control.Init"/> event to initialize the page.
        /// </summary>
        /// <param name="e">An <see cref="T:System.EventArgs"/> that contains the event data.</param>
        protected override void OnInit (EventArgs e)
        {
            base.OnInit (e);

            RegisterStaticResourcesByHand ();
        }
    }
}
